package com.haidechizi.i18n.code.generator.common.message.translate.mapping;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author wangdejun
 * @create 2020/10/17 11:16
 */
public class LanguageMappingHolder {

    private static final Map<String, String> boundingHolder = new ConcurrentHashMap<>();

    static final void putBounding(String key, String value) {
        boundingHolder.put(key, value);
    }

    static final void putAllBounding(Map<String, String> languageBounding) {
        boundingHolder.putAll(languageBounding);
    }

    public static final String boundingMapping(String key) {
        return boundingHolder.get(key);
    }

}
